﻿using BCCommon;
using BCCommon.TMS.Invoice;
using BCDto.TMS.User.UserInvoiceThin;
using BCDto.Website.User;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BCService.TMS.User.UserInvoiceThin
{
    /// <summary>
    /// 用户发票薄
    /// </summary>
    public interface IUserInvoiceThinService
    {
        /// <summary>
        /// 添加用户发票薄
        /// </summary>
        /// <param name="userInfo">用户信息</param>
        /// <param name="dto">用户发票薄信息</param>
        /// <returns></returns>
        UserInvoiceThinDto Add(UserDto userInfo, UserInvoiceThinRequestDto dto);

        /// <summary>
        /// 修改用户发票薄
        /// </summary>
        /// <param name="userInfo">用户信息</param>
        /// <param name="userInvoiceThinId">用户发票薄Id</param>
        /// <param name="dto">用户发票薄信息</param>
        /// <returns></returns>
        UserInvoiceThinDto Update(UserDto userInfo, long userInvoiceThinId, UserInvoiceThinRequestDto dto);

        /// <summary>
        /// 删除用户发票薄
        /// </summary>
        /// <param name="userInfo">用户信息</param>
        /// <param name="userInvoiceThinId">用户发票薄Id</param>
        void Delete(UserDto userInfo, long userInvoiceThinId);

        /// <summary>
        /// 获取用户发票薄
        /// </summary>
        /// <param name="userInvoiceThinId">用户发票薄Id</param>
        /// <returns></returns>
        UserInvoiceThinDto GetById(long userInvoiceThinId);

        /// <summary>
        /// 查询用户发票薄配置
        /// </summary>
        /// <param name="userInfo">用户信息</param>
        /// <param name="invoiceTitleType">发票抬头类型</param>
        /// <param name="pageIndex">页号</param>
        /// <param name="pageSize">每页数据条数</param>
        /// <returns></returns>
        PageableList<UserInvoiceThinDto> Query(UserDto userInfo, InvoiceTitleType? invoiceTitleType, int pageIndex, int pageSize);

        /// <summary>
        /// 查询用户发票薄配置列表
        /// </summary>
        /// <param name="userInfo">用户信息</param>
        /// <param name="invoiceTitleType">发票抬头类型</param>
        /// <returns></returns>
        IEnumerable<UserInvoiceThinDto> GetList(UserDto userInfo, InvoiceTitleType? invoiceTitleType);
    }
}
